package com.li.commons.util;

import java.util.List;

import com.li.commons.pager.Page;


public class PageWrapper<E>{

	private static final long serialVersionUID = -1637699426092986230L;

	private int pageNum;
	private int pageSize;
	private int startRow;
	private int endRow;
	private long total;
	private int pages;
	private List<E> result;
	
	public PageWrapper(Page page) {
		this.pageNum=page.getPageNum();
		this.pageSize=page.getPageSize();
		this.pages=page.getPages();
		this.total=page.getTotal();
		this.startRow=page.getStartRow();
		this.endRow=page.getEndRow();
		this.result=page.getResult();
	}
	
	public int getPageNum() {
		return pageNum;
	}
	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getStartRow() {
		return startRow;
	}
	public void setStartRow(int startRow) {
		this.startRow = startRow;
	}
	public int getEndRow() {
		return endRow;
	}
	public void setEndRow(int endRow) {
		this.endRow = endRow;
	}
	public long getTotal() {
		return total;
	}
	public void setTotal(long total) {
		this.total = total;
	}
	public int getPages() {
		return pages;
	}
	public void setPages(int pages) {
		this.pages = pages;
	}
	public List<E> getResult() {
		return result;
	}
	public void setResult(List<E> result) {
		this.result = result;
	}
}